#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
    Part of Seagull - The Pyhon Pages engine
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Python Page Compiler -- Exceptions
"""
__author__ = 'Jonathan Slenders <jonathan at slenders dot be>'
__license__ = 'GNU LGPL'

__all__ = ('CompileException', )


class CompileException(Exception):
	"""
	Something went wrong while parsing.
	"""
	def __init__(self, line, column, message, path=''):
		Exception.__init__(self, '%s: Line %s Column %s: %s' % (path, line, column, message))
		self.line = line
		self.column = column 
		self.message = message
		self.path = path

